<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : Place_CustomerStyleSheet.xsl
    Created on : July 25, 2013, 12:13 AM
    Author     : TOSHIBA
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:myPrefix="http://xml.netbeans.org/schema/PlaceSchema">
    <xsl:output method="html" omit-xml-declaration="yes"/>
    
    <xsl:template match="/">
        <h1>List Provinces</h1>

            <div>
                <div>Place</div>
                <div>Link hinh anh</div>
            </div>
            <xsl:apply-templates select="myPrefix:places"/>

    </xsl:template>
    <xsl:template match="myPrefix:places">
        <xsl:apply-templates select="myPrefix:place"/>
    </xsl:template>
    <xsl:template match="myPrefix:place">

            <div style="border: blue; width: 200px; height: 100px; display: inline">
                <xsl:value-of select="myPrefix:name"/>

                <a href="Controller?btAction=toPlace&amp;placeID={myPrefix:id}"> <img src="{myPrefix:picturePath}" width="400" height="100" alt="Hinh1"/></a>
                </div>

    </xsl:template>

</xsl:stylesheet>
